<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
  <title><ui:insert name="title">GQM+S</ui:insert></title>

</h:head>

<h:body>
	<p:layout fullPage="true" >  
	    <p:layoutUnit position="north" size="150" header="GQM+S Tool" resizable="false" closable="false" collapsible="true">  
	        <ui:insert name="northPanel"/>
	    </p:layoutUnit>  
	  
	    <p:layoutUnit position="west" size="200" header="Goal Explorer" resizable="true" closable="false" collapsible="true">  
	    	<ui:insert name="leftPanel"/>
	    </p:layoutUnit>  
	  
	    <p:layoutUnit position="east" size="200" header="Activity" resizable="true" closable="false" collapsible="true" effect="drop">  
	        <ui:insert name="rightPanel"/>	
	    </p:layoutUnit>  
	    
	    <p:layoutUnit position="center">  
	   		<h:form id="tabForm">       
    			<p:tabView id="tabView" dynamic="true" activeIndex="0">
    				<p:ajax event="tabChange" listener="#{switchViewBoundary.onTabChange()}" oncomplete="document.location.reload(true)"/>  
        			<p:tab rendered="#{switchViewBoundary.renderGOTab()}" title="GO-View" id="goViewTab">  
         				<ui:insert name="goContentTab"/>
        			</p:tab>  
        			<p:tab rendered="#{switchViewBoundary.renderSUTab()}" title="SU-View" id="suViewTab">  
        	 			<ui:insert name="suContentTab"/>
        			</p:tab>  
  				   	<p:tab rendered="#{switchViewBoundary.renderGETab()}" title="GE-View" id="geViewTab">
  				   		<ui:insert name="geContentTab"/>   
        			</p:tab>  
    			</p:tabView>  
			</h:form> 		
    	</p:layoutUnit>  
	</p:layout>
</h:body>

</html>
